package com.qzsoft.zhjd.asphalt.modules.asphaltmatch.entity;

import java.math.BigDecimal;
import java.util.Date;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;

/**
 * @ClassName AsphaltMatchColdEntity
 * @Description 沥青混合料冷料配比
 * @author linhuawei
 * @since 2021-12-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@NoArgsConstructor
@AllArgsConstructor
@Builder
@ToString
@TableName("n_asphalt_match_cold")
public class AsphaltMatchColdEntity {
    /**
     * 主键
     */
    @NotBlank(message = "配比主键不可为空")
    @TableId(type = IdType.ASSIGN_UUID)
    private String id;

    /**
     * 沥青占比
     */
    @NotNull(message = "沥青占比不能为空！")
    @DecimalMax(value = "99999.99999",message = "沥青占比不能超过{value}")
    private BigDecimal asphalt;

    /**
     * 木质纤维占比
     */
    @NotNull(message = "木质纤维占比不能为空！")
    @DecimalMax(value = "99999.99999",message = "木质纤维占比不能超过{value}")
    private BigDecimal woodFiber;


    /**
     * 骨料1占比
     */
    @NotNull(message = "骨料1占比不能为空！")
    @DecimalMax(value = "99999.99999",message = "骨料1占比不能超过{value}")
    private BigDecimal gravel1;

    /**
     * 骨料1名称
     */
    @NotNull(message = "骨料1名称不能为空！")
    @Length(max = 20,message = "骨料1名称不能超过{max}个字")
    private String gravel1Name;

    /**
     * 骨料2占比
     */
    @NotNull(message = "骨料2占比不能为空！")
    @DecimalMax(value = "99999.99999",message = "骨料2占比不能超过{value}")
    private BigDecimal gravel2;

    /**
     * 骨料2名称
     */
    @NotNull(message = "骨料2名称不能为空！")
    @Length(max = 20,message = "骨料2名称不能超过{max}个字")
    private String gravel2Name;

    /**
     * 骨料3占比
     */
    @NotNull(message = "骨料3占比不能为空！")
    @DecimalMax(value = "99999.99999",message = "骨料3占比不能超过{value}")
    private BigDecimal gravel3;

    /**
     * 骨料3名称
     */
    @NotNull(message = "骨料3名称不能为空！")
    @Length(max = 20,message = "骨料3名称不能超过{max}个字")
    private String gravel3Name;

    /**
     * 骨料4占比
     */
    @NotNull(message = "骨料4占比不能为空！")
    @DecimalMax(value = "99999.99999",message = "骨料4占比不能超过{value}")
    private BigDecimal gravel4;

    /**
     * 骨料4名称
     */
    @NotNull(message = "骨料4名称不能为空！")
    @Length(max = 20,message = "骨料4名称不能超过{max}个字")
    private String gravel4Name;

    /**
     * 骨料5占比
     */
    @NotNull(message = "骨料5不能为空！")
    @DecimalMax(value = "99999.99999",message = "骨料5不能超过{{value}")
    private BigDecimal gravel5;

    /**
     * 骨料5名称
     */
    @NotNull(message = "骨料5名称不能为空！")
    @Length(max = 20,message = "骨料5名称不能超过{max}个字")
    private String gravel5Name;

    /**
     * 骨料6占比
     */
    @NotNull(message = "骨料6不能为空！")
    @DecimalMax(value = "99999.99999",message = "骨料6不能超过{value}")
    private BigDecimal gravel6;

    /**
     * 骨料6名称
     */
    @NotNull(message = "骨料6名称不能为空！")
    @Length(max = 20,message = "骨料6名称不能超过{max}个字")
    private String gravel6Name;

    /**
     * 粉料1占比
     */
    @NotNull(message = "粉料1占比不能为空！")
    @DecimalMax(value = "99999.99999",message = "粉料1占比不能超过{value}")
    private BigDecimal powder1;

    /**
     * 粉料1名称
     */
    @NotNull(message = "骨料6名称不能为空！")
    @Length(max = 20,message = "骨料6名称不能超过{max}个字")
    private String powder1Name;

    /**
     * 粉料2占比
     */
    @NotNull(message = "粉料2占比不能为空！")
    @DecimalMax(value = "99999.99999",message = "粉料2占比不能超过{value}")
    private BigDecimal powder2;

    /**
     * 粉料2名称
     */
    @NotNull(message = "粉料2名称不能为空！")
    @Length(max = 20,message = "粉料2名称不能超过{max}个字")
    private String powder2Name;

    /**
     * 粉料3占比
     */
    @NotNull(message = "粉料3占比不能为空！")
    @DecimalMax(value = "99999.99999",message = "粉料3占比不能超过{value}")
    private BigDecimal powder3;

    /**
     * 粉料3名称
     */
    @NotNull(message = "粉料3名称不能为空！")
    @Length(max = 20,message = "粉料3名称不能超过{max}个字")
    private String powder3Name;

    /**
     * 再生料占比
     */
    @DecimalMax(value = "99999.99999",message = "再生料占比不能超过{value}")
    private BigDecimal recycledMaterial;

    /**
     * 添加人
     */
    @TableField(fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NEVER)
    private Long creator;

    /**
     * 添加时间
     */
    @TableField(fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NEVER)
    private Date createDate;

    /**
     * 修改人
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updater;

    /**
     * 修改时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateDate;

}
